package com.db.dao;

import com.db.pojo.Odreceipt;
import com.db.pojo.StoreOdreceipt;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface OdreceiptMapper {

    //插入交接处置单数据
    public int insertOdreceipt(Odreceipt odreceipt);

    //插入交接处置计划单数据
    public int insertStoreOdreceipt(StoreOdreceipt storeodreceipt);

    //查询交接处置单明细数据
    public List listOdreceipt(@Param("startDate") String startDate,
                              @Param("endDate") String endDate,
                              @Param("name") String name,
                              @Param("area") String area);
    //查询交接处置计划单明细数据
    public List listStoreOdreceipt(@Param("startDate") String startDate,
                                   @Param("endDate") String endDate,
                                   @Param("name") String name,
                                   @Param("area") String area);

    //查询交接处置单数据后按天合并
    public List listOdreceiptDaySum(@Param("startDate") String startDate,
                                    @Param("endDate") String endDate,
                                    @Param("name") String name,
                                    @Param("area") String area);

    //修改交接处置单数据
    public int updateOdreceipt(@Param("id") String id,
                              @Param("weight") String weight);

    //查询交接处置单位列表
    public List listOdunit();

    //查询交接处置单位区域列表
    public List listOdarea();

    //查询交接处置单位
    public Map selectOdunit(@Param("name") String name);


}
